FROM registry.cn-shanghai.aliyuncs.com/c7n/javabase:jdk8u282-b08
ADD ./target/app.jar /tianhua-license.jar
ADD ./license-agent.jar /license-agent.jar
WORKDIR license
COPY ./license/ license
ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8 -Duser.language=zh -Duser.region=CN -Duser.country=CN
ENTRYPOINT exec java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -javaagent:/license-agent.jar -DlicenseDir=/license/license $JAVA_OPTS $SKYWALKING_OPTS  -jar /tianhua-license.jar
